package xyz.shenmegui.foodcheckserver.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.CollectionUtils;
import xyz.shenmegui.foodcheckserver.VO.CollectionList;
import xyz.shenmegui.foodcheckserver.utils.ObjectUtil;

import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("collection")
public class Collection implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type= IdType.AUTO)
    private Integer id;
    @TableField("uid")
    private Integer userId;
    @TableField("mid")
    private Integer menuId;
    @TableField("mseed")
    private Integer seedId;
    @TableField("fid")
    private Integer foodId;
}
